package com.fyy.java8.methodRef;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author fyy
 * @Description
 * @Date 2021/2/25 14:43
 */
public class UserData {

    public static List<User> getUsersData(){
        List<User> users = new ArrayList<>();
        users.add(new User("张三","54"));
        users.add(new User("李四","55"));
        users.add(new User("王五","18"));
        users.add(new User("赵六","25"));
        users.add(new User("姜琦","500"));
        users.add(new User("秦叔宝","1000"));
        return users;
    }

    public static User getUserData(){
        return new User("秦叔宝","1000");
    }

}
